package cn.fsd.mapper;

import cn.fsd.domain.Order;
import cn.fsd.query.customer.OrderQuery;
import cn.fsd.query.delivery.PurchaseBean;
import cn.fsd.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {

  int deleteByPrimaryKey(String order_id);

  int insert(Order record);

  Order selectByPrimaryKey(String order_id);

  List<Order> selectAll();

  int updateByPrimaryKey(Order record);

  List<Order> selectByCustomerId(String customer_ids);

  List<Order> selectByCondition(OrderQuery orderQuery);

  List<OrderVO> selectVOByCondition(OrderQuery orderQuery);

  //配送中心需要的获取商品销量排行的方法
  List<PurchaseBean> getPurchaseList();

  Integer getUserNum();
}